package konsult;
import praktikumid.kaug.YberAken;


public class Lqimetamine implements Runnable {
	
	private String s;
	
	public Lqimetamine(String s) {
		this.s = s;
	}
	
	public static void main(String[] args) throws InterruptedException {
		
		Lqimetamine a = new Lqimetamine("a");
		Thread t1 = new Thread(a);
		
		Lqimetamine b = new Lqimetamine("b");
		Thread t2 = new Thread(b);
		
//		t1.run();
		t1.start();
		t2.start();
//		
		Thread.sleep(1000);
	}

	@Override
	public void run() {
		int i = 0;
		while (i++ < 100000) {
			System.out.println(s);
//			Thread.yield();
		}
	}
	
}
